﻿
var DEBUG_MODE = true;

Constants = {

    AppType:'BABY',
    DebugMode:DEBUG_MODE ? true : false,
    IOSAppID:523432025,
    appVer:'1.1',
    feedbackEmail:'feedback@parentingbox.com',
    appStoreUrl: 'itms-apps://itunes.apple.com/us/app/pages/id523432025?mt=8&uo=4',
    appStoreRatingUrl: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=523432025&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software',

    Unit:{
        kgs:2,
        lbs:1
    },

    AppId:{
        Suite:1, List:2, GrowthChart:3
    },

    LogSettings:{
        Breast:0,
        Bottle:1,
        Diaper:2,
        Sleep:3,
        Length:4
    },

    LogSettingsBottleFeed:{
        oz:new Array(),
        ml:new Array()
    },
    LogSettingsBottleFeedDefault:{
        oz:{'amountPicker':4},
        ml:{'amountPicker':100}
    },

    LogSettingsMisc:{
        millisInSecond:DEBUG_MODE ? 100 : 1000
    },

    BottleFeedType:{
        milk:'milk',
        formula:'formula'
    },

    ProductTypeIds:{
        adsfree:0,
        logplus:1,
        growthchartplus:2,
        lifetime:3
    },

    ProductTypes:['com.aawe.pb4babies.adsfree',
        'com.aawe.pb4babies.logplus',
        'com.aawe.pb4babies.growthchartplus',
        'com.aawe.pb4babies.lifetime'],

    Analytics:{
        accountId:DEBUG_MODE ? 'UA-31448185-1' : 'UA-32430543-1'
    },

    Server:{
        RESTEndPoint:DEBUG_MODE ? 'http://localhost:9999/rest/' : 'http://www.parentingbox.com/pb-api/rest/'
    },

    Chart:{
        options:new Array()
    },

    ChartWeight:{
        lb:new Array(),
        oz:new Array(),
        kg:new Array(),
        g:new Array()
    },

    ChartHeight:{
        inches1:new Array(),
        inches2:new Array(),
        cm1:new Array(),
        cm2:new Array()
    },

    ChartHead:{
        inches1:new Array(),
        inches2:new Array(),
        cm1:new Array(),
        cm2:new Array()
    }
};
